package com.falcon.core.domain.po;

import com.falcon.core.domain.generator.PoCreatorGenerator;
import com.swan.mybatis.anno.AutoField;
import com.swan.mybatis.anno.AutoTime;
import com.swan.mybatis.anno.Id;
import com.swan.mybatis.enums.IdGeneratorType;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/** 数据库实体基类
 * @author zongf
 * @since 2022-12-03
 **/
@Setter @Getter
public class BasePO {

    @Id(generatorType = IdGeneratorType.AUTO_INC)
    private Long id;

    @AutoField(onCreate = true, generator = PoCreatorGenerator.class)
    private Long creator;

    @AutoTime(onCreate = true)
    private Date createTime;


}
